package cn.wolfcode.crm.service;


import cn.wolfcode.crm.domain.Insurancebill;
import cn.wolfcode.crm.query.ObjectQuery;
import cn.wolfcode.crm.query.PageResult;

import java.math.BigDecimal;
import java.util.List;


public interface IInsurancebillService {
    void save(Insurancebill insurancebill);

    void delete(Long id);

    void update(Insurancebill insurancebill);

    Insurancebill get(Long id);

    List<Insurancebill> getAll();

    PageResult<Insurancebill> query(ObjectQuery qo);

    void changState(Long billId, int state, String info);

    List<Insurancebill> checkWhichCompensate(Long id);
    /**
     * @Description: 根据客户的id查询该客户对应的已经进行过赔付的保险单据
     * @Param: [id]
     * @return: java.util.List<cn.wolfcode.crm.domain.Insurancebill>
     */
    void updateDate(Insurancebill bill);

    void pay(Insurancebill bill);

    BigDecimal selectBillAccount();
}
